<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script src="jquery-3.4.1.js" type="text/javascript" charset="utf-8"></script>
		<div id="div1"></div>
		<script type="text/javascript">
			let div1=document.querySelector('#div1');
			let sum='1';
			$.ajax({
				type:'get',
				url:'http://v.juhe.cn/joke/content/list.php?sort=&page=2&pagesize=2&time=1418816972&key=4f9c7cf0e605378860dd677f0da9d74f',
				dataType: 'jsonp',
				success:function(d,s,x){
					console.log(d)
					for(let i in d.result.data){
						if(i==0){
							sum='1'
						}else{
							sum='2'
						}
						let shuju='<div>笑话'+sum+'：<br><p>'+d.result.data[i].content+'<p></div>';
						div1.innerHTML+=shuju
					}
				}
			})
		</script>
	</body>
</html>
